from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
from controller.ai.equipment import ai_router_equipment
from controller.ai.health import ai_router
from controller.api.card.controller import card_router

app = FastAPI()
app.include_router(ai_router)
app.include_router(ai_router_equipment)
app.include_router(card_router)

# 配置 CORS 中间件
app.add_middleware(
    CORSMiddleware,
    allow_origins=["*"],
    allow_methods=["*"],
    allow_headers=["*"],
)
